<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: flex;
        }
        .left {
            /* width: 200px; */
            height: 200px;
            background-color: pink;
            /* flex: min-content; */
        }
        .right {
            width: 200px;
            height: 200px;
            /* 单值无单位，等同于flex-grow: 1;flex-shrink: 1;flex-basis: 0; */
            /* flex: 1; */

            /* 单值有单位，设置的是flex-basis的值；等同于flex-basis: 30px; flex-grow: 1;flex-shrink: 1; */
            /* flex: 30px; */

            /* 
                flex-basis: 160px;
                1rem是一个字体的大小
                flex-grow和flex-shrink是1
            */
            /* flex: 10rem; */

            /* 
                flex-basis: min-content;
                flex-grow和flex-shrink是1；利用所有软换行的机会，变得尽可能的小
            */
            /* flex: min-content; */
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left">11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</div>
        <div class="right"></div>
    </div>
</body>
</html>